<?php

class CodeSpace_Jplugins_View_Helper_Superfish extends CodeSpace_Jplugins_View_Helper_JpluginsAbstract
{

    protected $_options = null;
        
    public function superfish($options = array(), $params = null)
    {

//        $front = Zend_Controller_Front::getInstance();
//        $bootstrap = $front->getParam("bootstrap");
//        $defaultOptions = $bootstrap->getPluginResource('jplugins')->getOptions();
//        $defaultOptions = $defaultOptions['plugin']['superfish'];
        
        $defaultOptions = new Zend_Config_Ini(APPLICATION_PATH . '/configs/jplugins.ini', 'superfish');
        $defaultOptions = $defaultOptions->toArray();
        
        $options['option'] = $options;
        $options = array_merge($defaultOptions, $options);
        $this->_options = $options;
        $this->_options['name'] = 'superfish';
        //var_dump($this->_options);
        //exit;
        $this->setStyleSheets();
        $this->setJsFiles();
        $this->loadOptions();
        
        if($params != null){
            return $this->loadContent($params);
        }else {
            return $this->loadContent();
        }
    }

}

?>
